// store.js
 import Vue from 'vue';
import Vuex from 'vuex';
 Vue.use(Vuex);
 const store = new Vuex.Store({
  state: {
    roleContent: ''
  },
  mutations: {
    setRoleContent(state, content) {
      state.roleContent = content;
    }
  },
  actions: {
    setRoleContent({ commit }, content) {
      commit('setRoleContent', content);
    }
  }
});
 export default store;